package com.be.beadmin.service.entity;


import com.be.beadmin.common.entity.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Getter
@Setter
@Table(name="SYS_DICTIONARY")
public class Dictionary extends BaseEntity {
    @ApiModelProperty(value = "编码")
    @Column(name = "CODE",columnDefinition = "VARCHAR(50) COMMENT '编码' ")
    private String code;

    @ApiModelProperty(value = "名称")
    @Column(name = "NAME",columnDefinition = "VARCHAR(50) COMMENT '名称' ")
    private String name;

    @ApiModelProperty(value = "类型")
    @Column(name = "TYPE",columnDefinition = "INT COMMENT '类型' ")
    private Integer type;

    @ApiModelProperty(value = "备注")
    @Column(name = "MEMO",columnDefinition = "VARCHAR(50) COMMENT '备注' ")
    private String memo;

    @ApiModelProperty(value = "是否是系统预设")
    @Column(name = "SysPresetFlag",columnDefinition = "BIT COMMENT '类型' ")
    private Boolean sysPresetFlag;
}
